<%@page import="com.multiplayer.entity.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!--jstl导入  -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<!-- 引入layui.css文件 -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css" media="all">
<!-- 引入layui.js文件 -->
<script src="${pageContext.request.contextPath}/layui/layui.js" charset="utf-8"></script>

<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/announcement/css/style.css" />
<!-- Bootstrap -->
<link href="${pageContext.request.contextPath}/personal/css/crowdfunding.center/project_manage.css" rel="stylesheet">

</head>
<body>
<%
 User user=(User)session.getAttribute("user");
 pageContext.setAttribute("userid", user.getUserid());
%>
<!-- 开始 -->
<div class="my_info_title">预约记录</div>
<div class="my_info_title_3">
  <ul>
    <li id="listClick7" onClick="listClick(7)" style="border-bottom: 1px solid #C40521; color: #C40521;">预约记录</li>
  </ul>
</div>
         
	<div class="main">
		<div class="title">
			<h4 ></h4>
			<p>Reservation record</p>
		</div>
		<ul>
<!-- 如果属性范围内的pd为null，我们就跳转到GonGaoServlet去获取数据，然后再转发回来 -->
		<c:if test="${userReservation==null }">
			<!-- c:redirect 跳转到 GongGaoServlet -->
			<c:redirect url="../../PersonalServlet?op=quaryUserRes&userid=${userid}"></c:redirect>
		</c:if> 
		 <c:forEach items="${userReservation}" var="reservation">
			<li class="three" style="margin-left:200px;">
				<a href="#">
					<div class="left">
						<h5>开始时间</h5>
					    <h4>${reservation.restime}</h4>
						<h5>结束时间</h5>
						<h4>${reservation.resetime}</h4>
					</div>
					<div class="right">
					 	<h5>自习室位置</h5>
						<h4>${rposition}</h4>
						<h5>预约状态</h5>
						<h4>正在使用</h4>
					</div>
				</a> 
			</c:forEach>
		</ul>
	</div>
	


<!-- 结束 --> 
<script src="${pageContext.request.contextPath}/js/jquery-2.1.1.min.js"></script>  
<script src="${pageContext.request.contextPath}/js/my_info.js"></script>
 
</body>
</html>